Class abstracting the windowing system used. More...
Public Member Functions | |
WindowingSystem (MainSystem *parentSystem) | |
virtual | ~WindowingSystem () |
DataAllocator * | getDataAllocator () const |
ComponentUtils * | getComponentUtils () const |
InputProcessor * | getInputProcessor () const |
SYSTEM_TYPE | getSystemType () const |
virtual bool | load ()=0 |
virtual void | run ()=0 |
virtual void | tick ()=0 |
virtual void | prepareForShutdown ()=0 |
virtual void | shutdown ()=0 |
virtual void | notifyEvent ()=0 |
Class abstracting the windowing system used.
nkWinUi::WindowingSystem::WindowingSystem | ( | MainSystem * | parentSystem | ) |
Constructor.
parentSystem | The parent main system. |
|
virtual |
Destructor.
DataAllocator* nkWinUi::WindowingSystem::getDataAllocator | ( | ) | const |
ComponentUtils* nkWinUi::WindowingSystem::getComponentUtils | ( | ) | const |
InputProcessor* nkWinUi::WindowingSystem::getInputProcessor | ( | ) | const |
SYSTEM_TYPE nkWinUi::WindowingSystem::getSystemType | ( | ) | const |
|
pure virtual |
Prepares the system for use.
|
pure virtual |
Runs the system. This variant will loop inside, ticking as required.
|
pure virtual |
Ticks the system. This can be called in a custom loop to make the system move forward.
|
pure virtual |
Prepares the system for shutdown.
|
pure virtual |
Shuts down the system.
|
pure virtual |
Gives a dummy event to stimulate the system. For some systems that are working by waiting on events, this will trigger a tick.